package com.yc.rh.biz.impl;

import java.util.List;

import com.yc.rh.biz.INewsInfoBiz;
import com.yc.rh.dao.INewsInfoDao;
import com.yc.rh.entities.NewsInfo;

public class NewsInfoBizImpl implements INewsInfoBiz{
	private INewsInfoDao newsInfoDao;
	
	public void setNewsInfoDao(INewsInfoDao newsInfoDao) {
		this.newsInfoDao = newsInfoDao;
	}

	@Override
	public List<NewsInfo> findCompanyNews(Integer pageNo, Integer pageSize) {
		return newsInfoDao.findCompanyNews(pageNo, pageSize);
	}

	@Override
	public List<NewsInfo> findHotNews(Integer pageNo, Integer pageSize) {
		return newsInfoDao.findHotNews(pageNo, pageSize);
	}

	@Override
	public List<NewsInfo> findServiceNews(Integer pageNo, Integer pageSize) {
		return newsInfoDao.findServiceNews(pageNo, pageSize);
	}

	@Override
	public int addNews(NewsInfo nsi) {
		return newsInfoDao.addNews(nsi);
	}

	@Override
	public int updateNews(NewsInfo nsi) {
		return newsInfoDao.updateNews(nsi);
	}

	@Override
	public int delNews(String nlid) {
		return newsInfoDao.delNews(nlid);
	}

	@Override
	public int total() {
		return newsInfoDao.total();
	}
}
